From: Florian Müllner Date: Tue, 17 Mar 2015 04:31:02 +0000 (+0100) Subject: messageTray: Minor cleanup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1464 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=dfc51ef24348c3074d36eedaf735e38706eab6af;p=gnome-shell.git messageTray: Minor cleanup Chain up to the parent instead of setting up a second signal connection. --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index d809ca88b..1256a13a6 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1128,7 +1128,6 @@ const NotificationBanner = new Lang.Class({ this.parent(notification); this.actor.add_style_class_name('notification-banner'); - this.actor.connect('destroy', Lang.bind(this, this._onDestroyed)); this._buttonBox = null; @@ -1145,7 +1144,8 @@ const NotificationBanner = new Lang.Class({ })); }, - _onDestroyed: function() { + _onDestroy: function() { + this.parent(); this.notification.disconnect(this._activatedId); },